public class Overload2
{
    void someMethod(int i)
    {
        System.out.println("int is used");
    }
    void someMethod(Integer integer)
    {
        System.out.println("Integer is used");
    }
}